package com.chenhl.bootmpdemo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@TableName("tb_departments")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class TbDept {

    @TableId
    private Integer id;

    private String  deptNo;

    private String deptName;

    private String creator;

    private String updater;

    @TableField(
            fill = FieldFill.INSERT
    )
    private Date createTime;

    @TableField(
            fill = FieldFill.INSERT_UPDATE
    )
    private Date updatedTime;

    private Integer isDeleted;

    @Version
    private Integer version;
}
